<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Chatroom</title>
</head>
<body>
    <div id="chatroom">
        <div id="toolbar">
            <span>聊天室</span>
        </div>
        <block tpl-id="chatroom_container">
            <div id="messages">
                {{#each data}}
                <div>{{this.username}}<span>{{$Library.getChatTime.getTime(this.time)}}</span></div>
                <div>{{this.message}}</div>
                {{/each}}
            </div>
        </block>

        <footer>
            <input id="inputName" type="txt" />
            <input id="inputMsg" type="txt" />
            <input id="send" type="button" value="发送" />
        </footer>
    </div>
</body>
</html>
